<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<meta name="viewport" content="maximum-scale=1.0,minimum-scale=1.0,user-scalable=0,width=device-width,initial-scale=1.0"/>
		<meta name="format-detection" content="telephone=no,email=no,date=no,address=no">
		<link rel="stylesheet" type="text/css" href="../css/aui.css" />
		<style type="text/css">
			.aui-bar-nav {
				background-color: #F05D4B;
			}
		</style>
	</head>
	<body>
		<header class="aui-bar aui-bar-nav" id="header">
			用户登录
		</header>
	</body>
	<script type="text/javascript" src="../script/api.js"></script>
	<script type="text/javascript">
		apiready = function() {
			$api.fixStatusBar($api.byId('header'));
			api.openFrame({
				name : 'login',
				url : 'frame_login.html',
				bounces : false,
				hScrollBarEnabled : false,
				vScrollBarEnabled : false,
				bgColor : '#ffffff',
				rect : {
					x : 0,
					y : $api.offset($api.byId('header')).h,
					w : 'auto',
					h : 'auto'
				}
			})
			api.addEventListener({
				name : 'keyback'
			}, function(ret, err) {
				api.toast({
					msg : '再点一次退出应用',
					duration : 2000,
					location : 'bottom'
				});
				api.addEventListener({
					name : 'keyback'
				}, function(ret, err) {
					api.closeWidget({
						silent : true
					});
				});
				setTimeout(function() {
					api.closeWidget({
					});
				}, 2000)
			});
		}
	</script>
</html>